package com.itec.learn.java.design.factory.abstractFactory;

import com.itec.learn.java.design.factory.Pizza;

/**
 * @author chenyiqun
 */
public class NewGreekPizza extends Pizza {
    PizzaIngredientFactory factory;

    public NewGreekPizza(PizzaIngredientFactory factory){
        this.factory = factory;
    }

    @Override
    public void prepare() {
        cheese = factory.createCheese();
        clams = factory.createClams();
    }
}
